package com.lap.auth.application.region.dto;

import com.lap.framework.entity.AbstractAudit;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "区域数据传输")
public class RegionDto extends AbstractAudit {
  @Serial
  private static final long serialVersionUID = -1764277974458062170L;

  @Schema(description = "区域唯一标识")
  private Integer id;

  @Schema(description = "父id")
  private Integer pid;

  @Schema(description = "父路径")
  private List<Integer> pidPaths;

  @Schema(description = "区域编码")
  private String code;

  @Schema(description = "区域名称")
  private String name;

  @Schema(description = "区域排序")
  private Integer orders;
}
